
<?php 
//foreach 循环只适用于数组，并用于遍历数组中的每个键/值对。
$colors = array("red","green","blue","yellow"); 

foreach ($colors as $value) {
  echo "$value <br>";
}
?>